package com.atguigu.service;

import com.atguigu.entity.UserFollow;
import com.atguigu.result.Result;
import com.atguigu.vo.UserFollowVo;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;

public interface UserFollowService extends BaseService<UserFollow> {
    // 关注房源
    void follow(Long userId, Long houseId);
    // 判断是否已经关注
    Boolean isFollowed(Long userId, Long id);

    PageInfo<UserFollowVo> findPageList(Integer pageNum, Integer pageSize, Long userId);

    void cancelFollow(Long id);

}
